Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profile.js: Remove usage of goog.events #3092

Merged
merged 2 commits into from
Nov 14, 2017

Conversation

pfirpfel
Copy link
Contributor

No description provided.

goog.events.listen(window, 'resize',
ngeoDebounce(refreshData, 50, true),
false, this);
window.addEventListener('resize', ngeoDebounce(refreshData, 50, true));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor but I think we should to stick to ol.events.* and jQuery for the events. Could be changed to:

ol.events.listen(window, 'resize', geoDebounce(refreshData, 50, true));

Copy link
Member

@fredj fredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks

@pfirpfel pfirpfel merged commit 9ec6234 into camptocamp:master Nov 14, 2017
@pfirpfel pfirpfel deleted the profile-remove-goog-events branch November 14, 2017 14:37
@sbrunner sbrunner added this to the 2.3 milestone Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants